<?php
	#echo 'fa91a9ddf6'; 
	#user_id="318276" user_username="RVANews" user_name=""/>		
	function __autoload($className) {
		require_once($className . '.php');
	}
	
	$u = new Upcoming('fa91a9ddf6');
	$events = $u->Group->getEvents(array(
		'group_id' => 14068,
		'show_past' => 1,
		'dir' => 'asc'
	));
	
	$cal = new lh_Calendar();
	$events = $cal->formatUpcomingEvents($events);
	#$cal->dump($events);
?>

<?php foreach($events as $key => $dayEvents) : ?>
	<h1><?php echo $cal->dayofweekify($key); ?></h1>
	<ul>
<?php foreach($dayEvents as $event) :?>
		<li><a href = "http://upcoming.yahoo.com/event/<?php echo $event->data['id']; ?>"><?php echo $event->data['name']; ?></a> @ <?php echo date($cal->timeFormat, strtotime($event->data['start_time'])); ?></li>
<?php endforeach; ?>
	</ul>
<?php endforeach; ?>